<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title> Sistema Financeiro </title>
	<h:outputText value="#{usuarioMBean.loginUsuario}"/>
	<a href="/Financeiro/j_spring_security_logout"> Sair </a>
</h:head>

<h:body >
	<h:messages />
	<div align="left">
		<h1>Cadastro de Tipo de Conta</h1>
		
		<h:form id="tipoContaForm">
			
				
				<table> 
					<tr>
						<td> Descri&#195;&#167;&#195;&#163;o: </td>
						<td> <h:inputText value="#{ tipoContaMBean.obj.descricao }" size="40" required="true" 
								requiredMessage="Descri&#195;&#167;&#195;&#163;o: obrigat&#195;&#179;rio."/> </td>
					</tr>
					<tr>
						<td colspan="2">
							<h:commandButton value="Listagem" action="#{tipoContaMBean.voltar}" immediate="true" />
							<h:commandButton value="Cadastrar" action="#{tipoContaMBean.salvar}" rendered="#{tipoContaMBean.obj.id == 0}" />
							<h:commandButton value="Atualizar" action="#{tipoContaMBean.atualizar}" rendered="#{tipoContaMBean.obj.id > 0}" />		
						</td>
					</tr>
				</table>
				<h:commandButton action="#{tipoContaMBean.menu}" value="Menu" />
		</h:form>

	</div>
</h:body>
</html>